package com.cargohu.aishouyu.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 聊天记录
 *
 * @author aaron.wang
 * @since 2023-11-27
 */
@Data
@TableName("chat_history")
@Schema(description = "聊天记录")
public class ChatHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "会员ID")
    private Long memberId;

    @Schema(description = "消息ID")
    private String messageId;


    @Schema(description = "消息内容")
    private String content;

    @Schema(description = "时间")
    private Date time;

    @Schema(description = "消息类型：1常用语，2正常人语音，3键盘输入，4手语识别")
    private Byte type;

    @TableLogic
    @Schema(description = "删除标记，1未删除，0已删除")
    private String delFlag;

}

